package com.springboot.base.common;

import java.io.Serializable;

/**
 *
 * @author beike
 * @date 2021/3/6
 */
public class ResultCode implements Serializable{
    private String errorCode;
    private String errorMessage;

    public ResultCode(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMessage() {
        return this.errorMessage;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public static final ResultCode SERVICE_EXCEPTION  = new ResultCode("500", "服务异常，请稍候重试");

    public static final ResultCode INVALID_TOKEN = new ResultCode("501", "无效Token");

    public static final ResultCode USER_NOT_LOGIN = new ResultCode("502", "用户未登录");

    public static final ResultCode LOGIN_EXPIRED = new ResultCode("503", "登录已过期");

    public static final ResultCode PARAM_WRONG  = new ResultCode("504", "参数不合法");

    public static final ResultCode INVALID_DING_TOKEN = new ResultCode("505", "无效Code");

    public static final ResultCode USERNAME_NOT_EXIST  = new ResultCode("507", "用户不存在");

    public static final ResultCode USERNAME_OR_PASSWORD_WRONG  = new ResultCode("508", "用户名或密码不正确");

    public static final ResultCode USERNAME_AND_PASSWORD_NOT_EMPTY  = new ResultCode("509", "用户名或密码不能为空");

    public static final ResultCode UNBOUND_USER  = new ResultCode("510", "未绑定用户");

    public static final ResultCode NOT_UPLOAD_DOC = new ResultCode("510", "未上传文档");

    public static final ResultCode NOT_DOC_FILE = new ResultCode("511", "不是word文档");

    public static final ResultCode FILE_NOT_EXIST = new ResultCode("512", "文件不存在");

    public static final ResultCode DOCUMENT_NOT_EXIST = new ResultCode("513", "文档不存在");

    public static final ResultCode DOCUMENT_ATTACHMENT_NOT_EXIST = new ResultCode("514", "文档附件不存在");

}
